<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

// router for menu
$route['quantri/menu/edit/(:num)'] = "mod_menu/edit/$1";
$route['quantri/menu/del/(:num)'] = "mod_menu/del/$1";
$route['quantri/menu/add'] = "mod_menu/add";
$route['quantri/menu'] = "mod_menu";
// end router menu

// router for bai viet
$route['quantri/article/edit/(:num)'] = "mod_article/edit/$1";
$route['quantri/article/del/(:num)'] = "mod_article/del/$1";
$route['quantri/article/add'] = "mod_article/add";
$route['quantri/article'] = "mod_article";

$route['quantri/carticle/edit/(:num)'] = "mod_article/cmod_article/edit/$1";
$route['quantri/carticle/del/(:num)'] = "mod_article/cmod_article/del/$1";
$route['quantri/carticle/add'] = "mod_article/cmod_article/add";
$route['quantri/carticle'] = "mod_article/cmod_article";
// end router bai viet

// router for san pham
$route['quantri/product/edit/(:num)'] = "mod_product/edit/$1";
$route['quantri/product/del/(:num)'] = "mod_product/del/$1";
$route['quantri/product/add'] = "mod_product/add";
$route['quantri/product'] = "mod_product";

$route['quantri/cproduct/edit/(:num)'] = "mod_product/cmod_product/edit/$1";
$route['quantri/cproduct/del/(:num)'] = "mod_product/cmod_product/del/$1";
$route['quantri/cproduct/add'] = "mod_product/cmod_product/add";
$route['quantri/cproduct'] = "mod_product/cmod_product";
// end router san pham

// router for language
$route['quantri/ngon-ngu/edit/(:num)'] = "mod_lang/edit/$1";
$route['quantri/ngon-ngu/del/(:num)'] = "mod_lang/del/$1";
$route['quantri/ngon-ngu/add'] = "mod_lang/add";
$route['quantri/ngon-ngu'] = "mod_lang";
// end router for language

$route['quantri/cau-hinh/edit/(:num)'] = "mod_config/edit/$1";
$route['quantri/cau-hinh'] = "mod_config";
$route['quantri/vn'] = "mod_admin/vn";
$route['quantri/en'] = "mod_admin/en";
$route['quantri'] = "mod_admin";
$route['default_controller'] = "welcome";
$route['404_override'] = '';


/* End of file routes.php */
/* Location: ./application/config/routes.php */